<!--
#    Copyright 2009 Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPGIS.
#    COOPGIS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPGIS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPGIS.  If not, see <http://www.gnu.org/licenses/>.
-->


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
        #map {
            width: 800px;
            height: 600px;
            border: 1px solid black;
        }
    </style>
    <script src="/openlayers/lib/OpenLayers.js"></script>
    <script type="text/javascript">
        var lon = -80.9;
        var lat = 33.7;
        var zoom = 8;
        var map, LayerElectricNetwork, scalebar;
	var options = {maxResolution: 0.17578125, numZoomLevels: 21, maxExtent: new OpenLayers.Bounds(-83, 33, -79, 35),
		'tileSize': new OpenLayers.Size(800,600)};
        function init(){
            map = new OpenLayers.Map('map', options);
            map.addControl(new OpenLayers.Control.MousePosition());
            LayerElectricNetwork = new OpenLayers.Layer.WMS("ElectricNetwork", 
                    "/cgi-bin/mapserv?MAP={{MapFileName}}",{Layers:"{{LayerName}}"},
		     {'buffer':0});
            map.addLayer(LayerElectricNetwork);
	    {{ OpenLayersZoom }}
        }
    </script>
    <title>COOPGIS GPS Trace</title>
  </head>
  <body onload="init()">
	<b>COOPGIS GPS Trace</b> &nbsp&nbsp&nbsp&nbsp <small><a href="/coopgis/">Main Menu</a></small>
 <table>
<tr><td><div id="map"></div></td>
<td valign="top">
<form method="post" action="">
	<table>
<tr><td>Number of Points:  {{NumberOfPoints}} <br>
    Minimum Position:  {{MinimumOrder}}<br>
    Maximum Position:  {{MaximumOrder}}<br><br></td></tr>

<tr><td>Map {{form.Map}}<br><br> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="submit"/><br><br></td></tr>
<tr><td><a href="/coopgis/gpstraceinprogress/" target="_blank">Start/Resume GPS Trace</a></td></tr>
<tr><td>Erase GPS Trace {{form.EraseIndicator}}</td><tr>

<tr><td>Move {{form.MoveIndicator}}<br>
        Start {{form.MoveStart}}  End {{form.MoveEnd}}<br>
        North {{form.MoveNorth}}  East {{form.MoveEast}}</td></tr>
<tr><td>Reorder {{form.ReorderIndicator}} Insert Position {{form.ReorderInsertionPosition}}<br>
        Start {{form.ReorderStart}} End {{form.ReorderEnd}}</td></tr>
<tr><td>Delete {{form.DeleteIndicator}}<br>
        Start {{form.DeleteStart}} End {{form.DeleteEnd}}</td></tr>
<tr><td>Create Point {{form.ManualInsertIndicator}}<br>
        Position {{form.ManualInsertPosition}}<br>
        Latitude {{form.ManualInsertLatitude}} Longitude {{form.ManualInsertLongitude}}</td></tr>


</table>
</form>

</td></tr>
</table>
  </body>
</html>
